# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-aioxmpp
_pkgname=aioxmpp
pkgver=0.13.3
pkgrel=3
pkgdesc="An XMPP library in pure Python and using asyncio."
url="https://pypi.org/project/aioxmpp/"
arch="noarch"
license="LGPL-3.0-only"
depends="
py3-aioopenssl
py3-aiosasl
py3-asn1
py3-asn1-modules
py3-babel
py3-dnspython
py3-lxml
py3-multidict
py3-openssl
py3-sortedcollections
py3-sortedcontainers
py3-tzlocal
python3
"
makedepends="py3-setuptools py3-gpep517"
source="https://files.pythonhosted.org/packages/source/a/aioxmpp/aioxmpp-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-pyc"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
	install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
		-t "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
1f3b9b086c083b6c613f71e56e85e35d844c5917c24de952233e65521dc4863da770e6b5b0cf2af4132971e78fa9c847c55b657f7f7d9c7eb15f0dad1285d85f  aioxmpp-0.13.3.tar.gz
"
